package com.galaxy.device.domain.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.galaxy.common.mybatis.core.domain.BaseEntity;
import com.galaxy.device.domain.DeviceStock;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备库存视图对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceStock.class)
public class DeviceStockVo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 设备ID
     */
    private Long deviceId;

    /**
     * 设备名称
     */
    @TableField(exist = false)
    @ExcelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 通道ID
     */
    private Long channelId;

    /**
     * 通道名称
     */
    @TableField(exist = false)
    @ExcelProperty(value = "通道名称")
    private String channelName;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 商品编号
     */
    private String productNo;

    /**
     * 库存数量
     */
    @ExcelProperty(value = "库存数量")
    private Integer stockQuantity;

    /**
     * 最大库存量
     */
    @ExcelProperty(value = "最大库存量")
    private Integer maxQuantity;

    /**
     * 最小库存量
     */
    @ExcelProperty(value = "最小库存量")
    private Integer minQuantity;

    /**
     * 预警库存量
     */
    @ExcelProperty(value = "预警库存量")
    private Integer alertQuantity;

    /**
     * 状态(0:缺货,1:正常,2:超量)
     */
    @ExcelProperty(value = "状态")
    private Integer status;

    /**
     * 状态名称
     */
    @TableField(exist = false)
    @ExcelProperty(value = "状态名称")
    private String statusName;
}
